﻿/* 点卷商店 */

var status = 0;

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
        var selStr = "#fUI/UIWindow2.img/Quest/quest_info/summary_icon/summary#\r\n#fUI/UIWindow2.img/QuestAlarm/BtQ/normal/0#亲爱的#r#h ##k您好，请您选择您需要的理财:\r\n#b#L0#办理周卡理财#l    #L1#办理月卡理财#l   #L2#办年周卡理财#l"; // \r\n#b#L3#枫叶（危险）#l#b#L4#坚韧意志#l    #b#L5#图腾合成#l\r\n#b#L6#新职业转职#l  #L7#进化神宠#l#L8#极品坐骑#l 
        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
        case 0:
            cm.dispose();
            cm.openNpc(9310070, "lc1"); //洗点卷轴
            break;
        case 1:
            cm.dispose();
            cm.openNpc(9310070, "lc2"); //洗点卷轴
            break;
        case 2:
            cm.dispose();
            cm.openNpc(9310070, "lc3"); //洗点卷轴
            break;
        case 3:
            cm.dispose();
            cm.warp(273010000,0);
            break;
        case 4:
            cm.dispose();
            cm.openNpc(9310060);
            break;
        case 5:
		//cm.sendOk("请到鲁彪那去买吧，我这里都没货了~");
            cm.dispose();
            cm.openNpc(9000178);
            break;
        case 6:
            cm.dispose();
            cm.openNpc(1531007);
            break;
	case 7:
            cm.dispose();
            cm.openNpc(1032205,"jhsc"); //破攻石头
            break;
	case 8:
            cm.dispose();
            cm.openNpc(1032206,"jpzj"); //一键潜能
            break;
        }
    }
}